import { SysUser } from "./data";
import fields = SysUser.Fields;
import { ListColumns } from "@/api/interface/ListColumns";
import { DeepClone } from "@/utils/deepClone";
import { TxsSearchBetweenInput } from "@/tsx/searchRender";
import { SearchRenderScope } from "@/components/ProTable/interface";

//列表文件获取更新后的列属性列表数据
export function getUpdatedColumnsSysUser(listCols: ListColumns): any {
  listCols.setIsShow(fields.avatar, false); //隐藏字段

  listCols.setSearchProps(fields.status, { el: "select-v2" });
  listCols.setSearchProps(fields.username, { optWhere: "LIKE", span: 1 });
  // listCols.setSearchTemplateRender(fields.status, "inputBetween");
  listCols.setSearchTemplateRender(fields.created_at, "dateBetween");

  console.log(listCols, " ---listCols");
  return DeepClone(listCols);
}
